<template>
  <div class="dashboard-container">
    <div class="dashboard-text">用户名: {{ name }}</div>
    <div class="dashboard-text">考生姓名: {{ nick_name }}</div>
    <div class="dashboard-text" v-if="is_super==0">管理员权限: 普通用户</div>
    <div class="dashboard-text" v-else>管理员权限: 超级用户</div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters([
      'name',
      'is_super',
      'nick_name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
